package zuoye5;

import java.util.Scanner;

public class MymathDemo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入第一个操作数：");
        int firstNumber = sc.nextInt();
        System.out.println("请输入第二个操作数：");
        int secondNumber = sc.nextInt();

        Mymath mm = new Mymath();
        System.out.println("加法结果："+mm.add(firstNumber,secondNumber));
        System.out.println("减法结果："+mm.sub(firstNumber,secondNumber));
        System.out.println("乘法结果："+mm.mul(firstNumber,secondNumber));
        System.out.println("除法结果："+mm.div(firstNumber,secondNumber));
    }
}
